<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/system/include/taglib.jsp"%>
<html>
<head>
<base href="${pageScope.basePath }">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中山市美斯特实业有限公司</title>
<link type="text/css" rel="stylesheet" href="system/css/style.css" />
<script type="text/javascript" language="javascript" src="system/js/public.js"></script>
<script type="text/javascript" src="system/js/validate.js"></script>
<script type="text/javascript" src="system/js/jquery-1.4.2.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function(){
	validate_Effect("#xxbt","[标题不能为空，请填写！]");	
	validate_Effect("#xxnr","[回复内容不能为空，请填写！]");	
});

function checkForm(){		
	var btValue=validateValueIsNull("#xxbt");
	if(btValue){
		after_effect("#xxbt","[标题不能为空，请填写！]");
		return false;
	}	
	var xxnrValue=validateValueIsNull("#xxnr");
	if(xxnrValue){
		after_effect("#xxnr","[回复内容不能为空，请填写！]");
		return false;
	}	
}
function after_effect(idName,message_tip){
	var object=$(idName);
	var message="<span style='color: red'>"+message_tip+"</span>";
	object.next().remove();
	object.after(message);			
}

</script>




</head>
<body>
<div class="main">
	<div class="position">当前位置: <a href="sysadm/desktop.jsp">桌 面</a> → 信息编辑</div>
	<div class="mainbody">		
		<div class="table">
			<form action="system/message/send_message.do" method="post" onsubmit="return checkForm()" >
				<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_form">
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">收件人：</td>
						<td><input name="acceptPerson" value="${param.acceptPerson}" />  </td>
					</tr>
					
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">标题：</td>
						<td><input name="xxbt" id="xxbt" /> *必填  </td>
					</tr>
					<tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
						<td align="right">内容：</td>
						<td>
							<textarea name="xxnr" id="xxnr" cols="50" rows="3"></textarea>*必填							
						</td>
					</tr>
					<tr>
						<td colspan="2" class="form_button" style="padding-top:10px;">
							<input type="submit" value="发送" />
							<input type="reset" value="重置" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</div>
</body>
</html>
